import { createRouter, createWebHistory } from 'vue-router'
import Employees from '../views/Employees.vue'
import Shifts from '../views/Shifts.vue'
import Schedule from '../views/Schedule.vue'
import ScheduleCalendar from '../views/ScheduleCalendar.vue'
import Products from '../views/Products.vue'

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      redirect: '/schedule'
    },
    {
      path: '/employees',
      name: 'employees',
      component: Employees
    },
    {
      path: '/shifts',
      name: 'shifts',
      component: Shifts
    },
    {
      path: '/schedule',
      name: 'schedule',
      component: Schedule
    },
    {
      path: '/calendar',
      name: 'calendar',
      component: ScheduleCalendar
    },
    {
      path: '/products',
      name: 'products',
      component: Products
    }
  ]
})

export default router